package com.ljw.gulimall.product.feign;

import com.ljw.common.to.SkuReductionTo;
import com.ljw.common.to.SpuBoundTo;
import com.ljw.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "gulimall-coupon")
public interface CouponFeignService {

    @PostMapping("/coupon/spubounds/save")
    R saveBounds(@RequestBody SpuBoundTo spuBoundTo);

    @PostMapping("/coupon/skufullreduction/save/skuReductionTos")
    R saveSkuReductionTos(@RequestBody List<SkuReductionTo> skuReductionTos);
}
